<template>
  <div class="recommend">
    <div class="recommend-item" v-for="(item, i) in recommend" :key="i">
      <a :href="item.link">
        <img :src="item.image" alt="圆形图标选项卡"/>
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "RecommendView",
  props: {
    recommend: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style>
 .recommend {
    display: flex;
    background-color: #fff;
    font-size: 14px;
    padding: 15px 0 22px;
    border-bottom: 10px solid #ededed;
  }
  .recommend-item {
    flex: 1;
    text-align: center;
  }
  .recommend-item img{
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
  }
</style>